import Vue from '../vue'
import store from '../vuex/store'
import AddHot from '../component/portfolio/add-hot/add-hot.vue'
import SwapHot from '../component/portfolio/swap-hot/swap-hot.vue'
import HotList from '../component/portfolio/hot-list/hot-list.vue'
import loginCheck from '../util/login-check'
import { alert } from 'vue-strap'

new Vue({
  el: 'body',
  components: {
    'vue-alert-msg': alert,
    'vue-add-hot': AddHot,
    'vue-swap-hot': SwapHot,
    'vue-hot-list': HotList
  },
  store,
  created() {
    loginCheck(this)
  },
  vuex: {
    getters: {
      msg: state => state.msg,
      menu: state => state.menuList.portfolio
    }
  }
})
